﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Common;

namespace BO
{
    partial class RoleAccessList
    {
        public RoleAccess FindFormAccess(string FullName)
        {
            return this.FirstOrDefault(item => item.FormName == FullName && item.ControlName == FullName);
        }
        public RoleAccess FindControlAccess(string FullName,string ControlName)
        {
            return this.FirstOrDefault(item => item.FormName == FullName && item.ControlName == ControlName);
        }
    }
}
